home *** CD-ROM | disk | FTP | other *** search
- <%@ Language=VBScript CODEPAGE=65001 %>
- <!--#include file="wmssecure/include/wmsConstants.inc"-->
- <!--#include file="wmssecure/include/wmsLocStrings.inc"-->
- <!--#include file="wmssecure/include/wmsServerHash.inc"-->
- <!--#include file="wmssecure/include/wmsconnect.inc"-->
- <!--#include file="wmssecure/include/wmsCommon.inc"-->
- <!--#include file="wmssecure/include/wmsHeader.inc"-->
- <%
- '+-------------------------------------------------------------------------
- '
- ' Microsoft Windows Media
- ' Copyright (C) Microsoft Corporation. All rights reserved.
- '
- ' File: oldBrowser.asp
- '
- ' Contents: Tells the user to upgrade their browser
- '
- '--------------------------------------------------------------------------
-
- Dim strBrowserType
- Dim dwBrowserType
-
- 'Session( "BrowserType" ) = ""
- 'if( "" = Session( "BrowserType" ) ) then
- BrowserSniff
- 'end if
-
- dwBrowserType = Session( "BrowserType" )
-
- if( brMSIE = Session( "BrowserType" ) ) then
- strBrowserType = L_MSIE_TEXT
- elseif( brNetscape = Session( "BrowserType" ) ) then
- strBrowserType = L_NETSCAPE_TEXT
- elseif( brOpera = Session( "BrowserType" ) ) then
- strBrowserType = L_OPERA_TEXT
- else
- strBrowserType = "??"
- end if
-
- '////////////////////////////////////////////////////////////////
- Function BuildReqBrowserString()
- Dim strTemplate
- Dim strFinalString
- strTemplate = L_BROWSERUPGRADEIE_TEXT
- if brMSIE = Session( "BrowserType" ) then
- strFinalString = Replace( strTemplate, "_1_", L_MSIE_TEXT, vbTextCompare )
- strFinalString = Replace( strFinalString, "_2_", CStr( MIN_MSIE_VERSION ), vbTextCompare )
- elseif brNetscape = Session( "BrowserType" ) then
- strFinalString = Replace( strTemplate, "_1_", L_NETSCAPE_TEXT, vbTextCompare )
- strFinalString = Replace( strFinalString, "_2_", CStr( MIN_NSCP_VERSION ), vbTextCompare )
- else
- strFinalString = Replace( strTemplate, "_1_", L_OPERA_TEXT, vbTextCompare )
- strFinalString = Replace( strFinalString, "_2_", CStr( MIN_OPERA_VERSION ), vbTextCompare )
- end if
-
- strFinalString = Server.HTMLEncode( strFinalString )
-
- ' Reinstate boldface tags
- strFinalString = Replace( strFinalString, "<b>", "<b>", vbTextCompare )
- strFinalString = Replace( strFinalString, "</b>", "</b>", vbTextCompare )
- BuildReqBrowserString = strFinalString
-
- End Function
-
-
- '////////////////////////////////////////////////////////////////
- Function BuildLinkString()
- Dim strTemplate
- Dim strLink
- strTemplate = L_UPDATELINKSTRING_TEXT
- strLink = "<a oncontextmenu=" & chr(34) & "JavaScript:event.cancelBubble=true;return false;" & chr(34) & " href=" & chr(34)
- if g_bNetscape then
- strLink = strLink & L_UPDATEURL_TEXT
- else
- strLink = strLink & L_UPDATEURLIE_TEXT
- end if
- strLink = strLink & chr(34) & "><b>" & L_UPDATELINKHOTSPOT_TEXT & "</b></a>"
- BuildLinkString = Replace( Server.HTMLEncode( strTemplate ), "___", strLink, 1 )
- End Function
-
-
- WriteHTMLHeader( L_OLDBROWSER_TEXT ) %>
- <link rel="stylesheet" type="text/css" href="wmsStyles.css">
- <script language="JavaScript">
- /*@cc_on @*/
- document.onmouseup="void( 0 );";
-
- ////////////////////////////////////////////////////////////////
- function UseSingleFrame()
- {
- /*@if (@_jscript_version >= 5.5)
- try
- {
- @end @*/
- if( window.parent != window )
- {
- <%
- if( brMSIE <> dwBrowserType ) then %>
- parent.document.location = parent.document.location.protocol + "//" + parent.document.location.host + "/pages/server_stopped.asp?server=<%= g_strQueryStringServer %>&serverop=noop";
- <% else %>
- document.parentWindow.parent.parent.location = document.parentWindow.parent.parent.location.protocol + "//" + document.parentWindow.parent.parent.location.host + "/pages/server_stopped.asp?server=<%= g_strQueryStringServer %>&serverop=noop";
- <% end if %>
- }
- /*@if (@_jscript_version >= 5.5)
- }
- catch( error )
- {
- return;
- }
- @end @*/
- }
- </script>
- </head>
- <body bgcolor="white" topmargin="12" leftmargin="12" rightmargin="12" marginwidth="12" oncontextmenu="JavaScript:event.cancelBubble=true;return false;" onload="JavaScript:UseSingleFrame();"><table width="100%" bgcolor="white" cellspacing="5" border="0">
- <table cellspacing=10 cellpadding=10 border="0" height="100%" width="100%"><tr><td><center>
- <table cellspacing=1 cellpadding=10 bgcolor="white" bordercolor="#6699FF" border="2"><tr><td>
- <table cellspacing=0 cellpadding=0 bgcolor="white" border="0">
- <tr>
- <!--
- <td>
- <img src="pages/img/wmsspacer_.gif" width=12 height=1>
- </td>
- -->
- <td align="left" valign="bottom" colspan=2>
- <table cellspacing=0 cellpadding=0 border=0>
- <tr>
- <td align="left" valign="middle">
- <img src="/img/warning32.gif" height="32" width="32" border="0">
- </td>
- <td align="left" valign="middle">
- <img src="/img/wmstransparent.gif" height="1" width="12" border="0">
- </td>
- <td align="left" valign="middle" nowrap width="100%" class="small">
- <b><%= Server.HTMLEncode( L_OLDBROWSER_TEXT ) %></b>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td>
- <img src="/img/wmsspacer_.gif" width="24" height=1>
- </td>
- <td class="small">
- <br>
- <%= BuildReqBrowserString() %><br><br><%= Server.HTMLEncode( L_BROWSERTABLETITLE_TEXT ) %>
- </td>
- </tr>
- <tr>
- <td align="left" valign="middle">
- <img src="/img/wmsspacer_.gif" height="1" width="24" border="0">
- </td>
- <td>
- <table border="0" cellspacing="5" cellpadding="5">
- <tr>
- <td>
- <img src="/img/wmsspacer_.gif" height="1" width="12" border="0">
- </td>
- <td class="small">
- <table border="0" cellspacing="3" cellpadding="1" bgcolor="#dddddd">
- <tr>
- <td valign="top" class="small"><font color="black"><%= Server.HTMLEncode( L_USINGBROWSER_TEXT ) %></font></td>
- <td valign="top" bgcolor="#eeeeee" class="small"><em><%= strBrowserType %></em> </td>
- </tr>
- <tr valign="top">
- <td valign="top" class="small"><font color="black"><%= Server.HTMLEncode( L_USINGBROWSERVERS_TEXT ) %></font></td>
- <td valign="top" bgcolor="#eeeeee" class="small"><em><%= CStr( g_curBrowserVersion ) %></em> </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td>
- <img src="/img/wmsspacer_.gif" width="24" height="1">
- </td>
- <td nowrap class="small">
- <br>
- <%= BuildLinkString %>
- <br>
- </td>
- </tr>
- </table>
- <table width="100%" cellpadding="2" cellspacing="2" ID="Table1">
- <tr>
- <td align="center">
- <button tabIndex="1" class="closebutton" onClick="JavaScript:document.location.replace( 'wmslogoff.asp?close=1' );" ID="Button1"><%= Server.HTMLEncode( L_CLOSEBTN_TEXT ) %></button>
- </td>
- </tr>
- </table>
- </td></tr></table>
- </center>
- </td></tr></table>
- </body>
- <script language="Javascript">
- /*@cc_on @*/
- /*@if (@_jscript_version >= 5.5)
- try
- {
- @end @*/
- UseSingleFrame();
- /*@if (@_jscript_version >= 5.5)
- }
- catch( error )
- {
- }
- @end @*/
- </script>
- </html>